#ifndef __ATMOS_DatabaseConnectionInfo_h__
#define __ATMOS_DatabaesConnectionInfo_h__

#include "ATMOS_Common.h"

namespace ATMOS { 

//! Stores information telling the MasterServerDatabase how to connect to the database server
struct AtmosExport DatabaseConnectionInfo
{
	DatabaseConnectionInfo();
	DatabaseConnectionInfo( const DatabaseConnectionInfo &src );
	~DatabaseConnectionInfo();

	//! write the values in this instance to file
	void saveToFile( const std::string &filename );
	//! load values from file
	void loadFromFile( const std::string &filename );

	//! the IP of the database server
	std::string ip;
	//! the name of the database
	std::string name;
	//! the port on which to connect to the database server
	int port;
	//! the username for the database
	std::string username;
	//! the password for teh database user
	std::string password;
};

} // end namespace ATMOS

#endif